import { message } from 'ant-design-vue'
import Clipboard from "clipboard";


const vCopy = {
  inserted(el) {
    console.log('el', el)
    const obj = new Clipboard(el);
    obj.on("success", () => {
      message.success('复制成功')
    });
    obj.on("error", () => {
      message.error('复制失败')
    });
  },
}

export default vCopy